﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;


namespace SchemesServer.WCFServer
{
    [DataContract]
    public class DataInfo
    {
        /// <summary>
        /// 默认buff长度100K
        /// </summary>
        private long bufflen=1024*100;

        /// <summary>
        /// 数据文件名称
        /// </summary>
        [DataMember]
        public string Name { get; set; }
        /// <summary>
        /// 数据文件长度
        /// </summary>
        [DataMember]
        public long Length { get; set; }
        /// <summary>
        /// 数据文件当前偏移量
        /// </summary>
        [DataMember]
        public long Offset { get; set; }
        /// <summary>
        /// 数据文件当前传输字节数
        /// </summary>
        [DataMember]
        public byte[] Data { get; set; }

        /// <summary>
        /// 数据文件一帧最大BUFF长度
        /// </summary>
        [DataMember]
        public long BuffLen 
        { get { return bufflen; } 
            set { bufflen = value; } 
        }
    }
}
